<!--
 * @Autor: 黄旗
 * @Date: 2020-07-17 09:00:14
-->
<template>
    <Input
        v-show="params.show ? params.show.show : true"
        v-model.trim="params.value"
        :placeholder="params.placeholder || '请输入'"
        :style="params.style"
        :type="params.type"
        :size="params.size"
        :clearable="params.clearable"
        :disabled="params.disabled"
        :readonly="params.readonly"
        :maxlength="params.maxlength"
        :show-word-limit="params.showWordLimit"
        :password="params.password"
        :icon="params.icon"
        :prefix="params.prefix"
        :suffix="params.suffix"
        :search="params.search"
        :enter-button="params.enterButton"
        :rows="params.rows"
        :autosize="params.autosize"
        :number="params.number"
        :autofocus="params.autofocus"
        :autocomplete="params.autocomplete"
        :element-id="params.elementId"
        :spellcheck="params.spellcheck"
        :wrap="params.wrap"
        @on-change="$emit('on-change', $event)"
        @on-enter="$emit('on-input', $event)"
        @on-clear="$emit('on-input', $event)"
    />
</template>

<script>
export default {
  props: ["params"],
};
</script>
